/*
 * @Author: XuMeiyi
 * @Date: 2021-10-21 18:49:06
 * @LastEditors: XuMeiyi
 * @LastEditTime: 2021-10-23 18:35:18
 * @Description: 
 */
import { get, post } from '@/utils/request'

//查询所有轮播图
export function findAll(data) {
  return get('/carousel/findAll', data);
}

//根据id删除轮播图
export function deleteById(data) {
  return get('/carousel/deleteById', data);
}

//更新或保存轮播图
export function saveOrUpdate(data) {
  return post('/carousel/saveOrUpdate', data);
}

//根据轮播图状态查询轮播图
export function query(data) {
  return get('/carousel/query', data);
}